package com.example.service;

import com.example.dto.UserReq;
import com.example.model.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    public int save(User user);

    public int update(User user);

    public int delete(Integer userId);

    public User getUserById(Integer userId);

    public User getUserByUsernameAndPasswd(String userName,String password);

    public PageInfo findAll(UserReq userReq,int pageNum, int pageSize);
}
